package cn.wd.user.service;


import cn.wd.user.domain.entity.Employee;
import cn.wd.user.model.LoginBody;
import cn.wd.user.qo.EmployeeQueryObject;
import cn.wd.user.vo.BatchData;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface IEmployeeService extends IService<Employee> {

    /**
     * 通过部门 id 查询员工
     *
     * @param deptId 部门 id
     * @return 所在部门下面的全部员工
     */
    List<Employee> selectByDepartmentPrimaryKey(Long deptId);

    String login(String username, String password);

    String login(LoginBody loginBody);

    void restPassword(Long id, String newPassword, String oldPassword);

    void updateAvatar(String token, String avatar);

    void batchList(BatchData batchData);

    Page<Employee> listEmployeePage(EmployeeQueryObject qo);
}
